package com.hoshiibuy.common.dataobject;

import lombok.Data;

import java.util.List;

/**
 * 分页组件
 */
@Data
public class PaginationDO {
    private boolean showLastButton;     //是否展示上一页
    private boolean showNextButton;     //是否展示下一页
    private int lastPage;               //上一页
    private int nextPage;               //下一页

    private List<PageDO> pages;         //中间页码

	public boolean isShowLastButton() {
		return showLastButton;
	}

	public void setShowLastButton(boolean showLastButton) {
		this.showLastButton = showLastButton;
	}

	public boolean isShowNextButton() {
		return showNextButton;
	}

	public void setShowNextButton(boolean showNextButton) {
		this.showNextButton = showNextButton;
	}

	public int getLastPage() {
		return lastPage;
	}

	public void setLastPage(int lastPage) {
		this.lastPage = lastPage;
	}

	public int getNextPage() {
		return nextPage;
	}

	public void setNextPage(int nextPage) {
		this.nextPage = nextPage;
	}

	public List<PageDO> getPages() {
		return pages;
	}

	public void setPages(List<PageDO> pages) {
		this.pages = pages;
	}
    
    

}
